﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class Contents
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string State { get; set; }
        public string ImgUrl { get; set; }
        public DateTime UpdateTime { get; set; }
        public int Seed { get; set; }
        public string SourceUrl { get; set; }
        public string Intro { get; set; }
        public bool IsHot { get; set; }
        public bool IsCover { get; set; }
    }


    public class Pagination
    {
        public int Total { get; set; } //总行数
        public int Index { get; set; } //当前页
        public int Count { get; set; } //行数
        public int Page
        {
            get
            {
                return (Total / Count) + 1;
            }
        }  //页数
    }
    public class ContentList
    {
        public List<Contents> List { get; set; }
        public Pagination Page { get; set; }
    }


}
